3.1.68 \(\int \text {csch}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} \, dx\) [68]

Optimal. Leaf size=84 \[ -\frac {\sqrt {a} \tanh ^{-1}\left (\frac {\sqrt {a} \cosh (e+f x)}{\sqrt {a-b+b \cosh ^2(e+f x)}}\right )}{f}+\frac {\sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {b} \cosh (e+f x)}{\sqrt {a-b+b \cosh ^2(e+f x)}}\right )}{f} \]

[Out]

-arctanh(cosh(f*x+e)*a^(1/2)/(a-b+b*cosh(f*x+e)^2)^(1/2))*a^(1/2)/f+arctanh(cosh(f*x+e)*b^(1/2)/(a-b+b*cosh(f*
x+e)^2)^(1/2))*b^(1/2)/f

________________________________________________________________________________________

Rubi [A]
time = 0.07, antiderivative size = 84, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {3265, 399, 223, 212, 385} \begin {gather*} \frac {\sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {b} \cosh (e+f x)}{\sqrt {a+b \cosh ^2(e+f x)-b}}\right )}{f}-\frac {\sqrt {a} \tanh ^{-1}\left (\frac {\sqrt {a} \cosh (e+f x)}{\sqrt {a+b \cosh ^2(e+f x)-b}}\right )}{f} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Csch[e + f*x]*Sqrt[a + b*Sinh[e + f*x]^2],x]

[Out]

-((Sqrt[a]*ArcTanh[(Sqrt[a]*Cosh[e + f*x])/Sqrt[a - b + b*Cosh[e + f*x]^2]])/f) + (Sqrt[b]*ArcTanh[(Sqrt[b]*Co
sh[e + f*x])/Sqrt[a - b + b*Cosh[e + f*x]^2]])/f

Rule 212

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))*ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 223

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Subst[Int[1/(1 - b*x^2), x], x, x/Sqrt[a + b*x^2]] /; FreeQ[{a,
b}, x] &&  !GtQ[a, 0]

Rule 385

Int[((a_) + (b_.)*(x_)^(n_))^(p_)/((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> Subst[Int[1/(c - (b*c - a*d)*x^n), x]
, x, x/(a + b*x^n)^(1/n)] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && EqQ[n*p + 1, 0] && IntegerQ[n]

Rule 399

Int[((a_) + (b_.)*(x_)^(n_))^(p_)/((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> Dist[b/d, Int[(a + b*x^n)^(p - 1), x]
, x] - Dist[(b*c - a*d)/d, Int[(a + b*x^n)^(p - 1)/(c + d*x^n), x], x] /; FreeQ[{a, b, c, d, p}, x] && NeQ[b*c
 - a*d, 0] && EqQ[n*(p - 1) + 1, 0] && IntegerQ[n]

Rule 3265

Int[sin[(e_.) + (f_.)*(x_)]^(m_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]^2)^(p_.), x_Symbol] :> With[{ff = Free
Factors[Cos[e + f*x], x]}, Dist[-ff/f, Subst[Int[(1 - ff^2*x^2)^((m - 1)/2)*(a + b - b*ff^2*x^2)^p, x], x, Cos
[e + f*x]/ff], x]] /; FreeQ[{a, b, e, f, p}, x] && IntegerQ[(m - 1)/2]

Rubi steps

\begin {align*} \int \text {csch}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} \, dx &=-\frac {\text {Subst}\left (\int \frac {\sqrt {a-b+b x^2}}{1-x^2} \, dx,x,\cosh (e+f x)\right )}{f}\\ &=-\frac {a \text {Subst}\left (\int \frac {1}{\left (1-x^2\right ) \sqrt {a-b+b x^2}} \, dx,x,\cosh (e+f x)\right )}{f}+\frac {b \text {Subst}\left (\int \frac {1}{\sqrt {a-b+b x^2}} \, dx,x,\cosh (e+f x)\right )}{f}\\ &=-\frac {a \text {Subst}\left (\int \frac {1}{1-a x^2} \, dx,x,\frac {\cosh (e+f x)}{\sqrt {a-b+b \cosh ^2(e+f x)}}\right )}{f}+\frac {b \text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {\cosh (e+f x)}{\sqrt {a-b+b \cosh ^2(e+f x)}}\right )}{f}\\ &=-\frac {\sqrt {a} \tanh ^{-1}\left (\frac {\sqrt {a} \cosh (e+f x)}{\sqrt {a-b+b \cosh ^2(e+f x)}}\right )}{f}+\frac {\sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {b} \cosh (e+f x)}{\sqrt {a-b+b \cosh ^2(e+f x)}}\right )}{f}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.09, size = 97, normalized size = 1.15 \begin {gather*} \frac {-\sqrt {a} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {a} \cosh (e+f x)}{\sqrt {2 a-b+b \cosh (2 (e+f x))}}\right )+\sqrt {b} \log \left (\sqrt {2} \sqrt {b} \cosh (e+f x)+\sqrt {2 a-b+b \cosh (2 (e+f x))}\right )}{f} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Csch[e + f*x]*Sqrt[a + b*Sinh[e + f*x]^2],x]

[Out]

(-(Sqrt[a]*ArcTanh[(Sqrt[2]*Sqrt[a]*Cosh[e + f*x])/Sqrt[2*a - b + b*Cosh[2*(e + f*x)]]]) + Sqrt[b]*Log[Sqrt[2]
*Sqrt[b]*Cosh[e + f*x] + Sqrt[2*a - b + b*Cosh[2*(e + f*x)]]])/f

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(173\) vs. \(2(72)=144\).
time = 1.15, size = 174, normalized size = 2.07

method result size
default \(\frac {\sqrt {\left (a +b \left (\sinh ^{2}\left (f x +e \right )\right )\right ) \left (\cosh ^{2}\left (f x +e \right )\right )}\, \left (\sqrt {b}\, \ln \left (\frac {2 b \left (\cosh ^{2}\left (f x +e \right )\right )+2 \sqrt {b \left (\cosh ^{4}\left (f x +e \right )\right )+\left (a -b \right ) \left (\cosh ^{2}\left (f x +e \right )\right )}\, \sqrt {b}+a -b}{2 \sqrt {b}}\right )-\sqrt {a}\, \ln \left (\frac {\left (a +b \right ) \left (\cosh ^{2}\left (f x +e \right )\right )+2 \sqrt {a}\, \sqrt {b \left (\cosh ^{4}\left (f x +e \right )\right )+\left (a -b \right ) \left (\cosh ^{2}\left (f x +e \right )\right )}+a -b}{\sinh \left (f x +e \right )^{2}}\right )\right )}{2 \cosh \left (f x +e \right ) \sqrt {a +b \left (\sinh ^{2}\left (f x +e \right )\right )}\, f}\) \(174\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(csch(f*x+e)*(a+b*sinh(f*x+e)^2)^(1/2),x,method=_RETURNVERBOSE)

[Out]

1/2*((a+b*sinh(f*x+e)^2)*cosh(f*x+e)^2)^(1/2)*(b^(1/2)*ln(1/2*(2*b*cosh(f*x+e)^2+2*(b*cosh(f*x+e)^4+(a-b)*cosh
(f*x+e)^2)^(1/2)*b^(1/2)+a-b)/b^(1/2))-a^(1/2)*ln(((a+b)*cosh(f*x+e)^2+2*a^(1/2)*(b*cosh(f*x+e)^4+(a-b)*cosh(f
*x+e)^2)^(1/2)+a-b)/sinh(f*x+e)^2))/cosh(f*x+e)/(a+b*sinh(f*x+e)^2)^(1/2)/f

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csch(f*x+e)*(a+b*sinh(f*x+e)^2)^(1/2),x, algorithm="maxima")

[Out]

integrate(sqrt(b*sinh(f*x + e)^2 + a)*csch(f*x + e), x)

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 719 vs. \(2 (72) = 144\).
time = 0.51, size = 4423, normalized size = 52.65 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csch(f*x+e)*(a+b*sinh(f*x+e)^2)^(1/2),x, algorithm="fricas")

[Out]

[1/4*(sqrt(b)*log((a^2*b*cosh(f*x + e)^8 + 8*a^2*b*cosh(f*x + e)*sinh(f*x + e)^7 + a^2*b*sinh(f*x + e)^8 + 2*(
a^3 + a^2*b)*cosh(f*x + e)^6 + 2*(14*a^2*b*cosh(f*x + e)^2 + a^3 + a^2*b)*sinh(f*x + e)^6 + 4*(14*a^2*b*cosh(f
*x + e)^3 + 3*(a^3 + a^2*b)*cosh(f*x + e))*sinh(f*x + e)^5 + (9*a^2*b - 4*a*b^2 + b^3)*cosh(f*x + e)^4 + (70*a
^2*b*cosh(f*x + e)^4 + 9*a^2*b - 4*a*b^2 + b^3 + 30*(a^3 + a^2*b)*cosh(f*x + e)^2)*sinh(f*x + e)^4 + 4*(14*a^2
*b*cosh(f*x + e)^5 + 10*(a^3 + a^2*b)*cosh(f*x + e)^3 + (9*a^2*b - 4*a*b^2 + b^3)*cosh(f*x + e))*sinh(f*x + e)
^3 + b^3 + 2*(3*a*b^2 - b^3)*cosh(f*x + e)^2 + 2*(14*a^2*b*cosh(f*x + e)^6 + 15*(a^3 + a^2*b)*cosh(f*x + e)^4
+ 3*a*b^2 - b^3 + 3*(9*a^2*b - 4*a*b^2 + b^3)*cosh(f*x + e)^2)*sinh(f*x + e)^2 + sqrt(2)*(a^2*cosh(f*x + e)^6
+ 6*a^2*cosh(f*x + e)*sinh(f*x + e)^5 + a^2*sinh(f*x + e)^6 + 3*a^2*cosh(f*x + e)^4 + 3*(5*a^2*cosh(f*x + e)^2
 + a^2)*sinh(f*x + e)^4 + 4*(5*a^2*cosh(f*x + e)^3 + 3*a^2*cosh(f*x + e))*sinh(f*x + e)^3 + (4*a*b - b^2)*cosh
(f*x + e)^2 + (15*a^2*cosh(f*x + e)^4 + 18*a^2*cosh(f*x + e)^2 + 4*a*b - b^2)*sinh(f*x + e)^2 + b^2 + 2*(3*a^2
*cosh(f*x + e)^5 + 6*a^2*cosh(f*x + e)^3 + (4*a*b - b^2)*cosh(f*x + e))*sinh(f*x + e))*sqrt(b)*sqrt((b*cosh(f*
x + e)^2 + b*sinh(f*x + e)^2 + 2*a - b)/(cosh(f*x + e)^2 - 2*cosh(f*x + e)*sinh(f*x + e) + sinh(f*x + e)^2)) +
 4*(2*a^2*b*cosh(f*x + e)^7 + 3*(a^3 + a^2*b)*cosh(f*x + e)^5 + (9*a^2*b - 4*a*b^2 + b^3)*cosh(f*x + e)^3 + (3
*a*b^2 - b^3)*cosh(f*x + e))*sinh(f*x + e))/(cosh(f*x + e)^6 + 6*cosh(f*x + e)^5*sinh(f*x + e) + 15*cosh(f*x +
 e)^4*sinh(f*x + e)^2 + 20*cosh(f*x + e)^3*sinh(f*x + e)^3 + 15*cosh(f*x + e)^2*sinh(f*x + e)^4 + 6*cosh(f*x +
 e)*sinh(f*x + e)^5 + sinh(f*x + e)^6)) + 2*sqrt(a)*log(-((a + b)*cosh(f*x + e)^4 + 4*(a + b)*cosh(f*x + e)*si
nh(f*x + e)^3 + (a + b)*sinh(f*x + e)^4 + 2*(3*a - b)*cosh(f*x + e)^2 + 2*(3*(a + b)*cosh(f*x + e)^2 + 3*a - b
)*sinh(f*x + e)^2 - 2*sqrt(2)*(cosh(f*x + e)^2 + 2*cosh(f*x + e)*sinh(f*x + e) + sinh(f*x + e)^2 + 1)*sqrt(a)*
sqrt((b*cosh(f*x + e)^2 + b*sinh(f*x + e)^2 + 2*a - b)/(cosh(f*x + e)^2 - 2*cosh(f*x + e)*sinh(f*x + e) + sinh
(f*x + e)^2)) + 4*((a + b)*cosh(f*x + e)^3 + (3*a - b)*cosh(f*x + e))*sinh(f*x + e) + a + b)/(cosh(f*x + e)^4
+ 4*cosh(f*x + e)*sinh(f*x + e)^3 + sinh(f*x + e)^4 + 2*(3*cosh(f*x + e)^2 - 1)*sinh(f*x + e)^2 - 2*cosh(f*x +
 e)^2 + 4*(cosh(f*x + e)^3 - cosh(f*x + e))*sinh(f*x + e) + 1)) + sqrt(b)*log(-(b*cosh(f*x + e)^4 + 4*b*cosh(f
*x + e)*sinh(f*x + e)^3 + b*sinh(f*x + e)^4 + 2*(a - b)*cosh(f*x + e)^2 + 2*(3*b*cosh(f*x + e)^2 + a - b)*sinh
(f*x + e)^2 + sqrt(2)*(cosh(f*x + e)^2 + 2*cosh(f*x + e)*sinh(f*x + e) + sinh(f*x + e)^2 - 1)*sqrt(b)*sqrt((b*
cosh(f*x + e)^2 + b*sinh(f*x + e)^2 + 2*a - b)/(cosh(f*x + e)^2 - 2*cosh(f*x + e)*sinh(f*x + e) + sinh(f*x + e
)^2)) + 4*(b*cosh(f*x + e)^3 + (a - b)*cosh(f*x + e))*sinh(f*x + e) + b)/(cosh(f*x + e)^2 + 2*cosh(f*x + e)*si
nh(f*x + e) + sinh(f*x + e)^2)))/f, 1/4*(4*sqrt(-a)*arctan(sqrt(2)*(cosh(f*x + e)^2 + 2*cosh(f*x + e)*sinh(f*x
 + e) + sinh(f*x + e)^2 + 1)*sqrt(-a)*sqrt((b*cosh(f*x + e)^2 + b*sinh(f*x + e)^2 + 2*a - b)/(cosh(f*x + e)^2
- 2*cosh(f*x + e)*sinh(f*x + e) + sinh(f*x + e)^2))/(b*cosh(f*x + e)^4 + 4*b*cosh(f*x + e)*sinh(f*x + e)^3 + b
*sinh(f*x + e)^4 + 2*(2*a - b)*cosh(f*x + e)^2 + 2*(3*b*cosh(f*x + e)^2 + 2*a - b)*sinh(f*x + e)^2 + 4*(b*cosh
(f*x + e)^3 + (2*a - b)*cosh(f*x + e))*sinh(f*x + e) + b)) + sqrt(b)*log((a^2*b*cosh(f*x + e)^8 + 8*a^2*b*cosh
(f*x + e)*sinh(f*x + e)^7 + a^2*b*sinh(f*x + e)^8 + 2*(a^3 + a^2*b)*cosh(f*x + e)^6 + 2*(14*a^2*b*cosh(f*x + e
)^2 + a^3 + a^2*b)*sinh(f*x + e)^6 + 4*(14*a^2*b*cosh(f*x + e)^3 + 3*(a^3 + a^2*b)*cosh(f*x + e))*sinh(f*x + e
)^5 + (9*a^2*b - 4*a*b^2 + b^3)*cosh(f*x + e)^4 + (70*a^2*b*cosh(f*x + e)^4 + 9*a^2*b - 4*a*b^2 + b^3 + 30*(a^
3 + a^2*b)*cosh(f*x + e)^2)*sinh(f*x + e)^4 + 4*(14*a^2*b*cosh(f*x + e)^5 + 10*(a^3 + a^2*b)*cosh(f*x + e)^3 +
 (9*a^2*b - 4*a*b^2 + b^3)*cosh(f*x + e))*sinh(f*x + e)^3 + b^3 + 2*(3*a*b^2 - b^3)*cosh(f*x + e)^2 + 2*(14*a^
2*b*cosh(f*x + e)^6 + 15*(a^3 + a^2*b)*cosh(f*x + e)^4 + 3*a*b^2 - b^3 + 3*(9*a^2*b - 4*a*b^2 + b^3)*cosh(f*x
+ e)^2)*sinh(f*x + e)^2 + sqrt(2)*(a^2*cosh(f*x + e)^6 + 6*a^2*cosh(f*x + e)*sinh(f*x + e)^5 + a^2*sinh(f*x +
e)^6 + 3*a^2*cosh(f*x + e)^4 + 3*(5*a^2*cosh(f*x + e)^2 + a^2)*sinh(f*x + e)^4 + 4*(5*a^2*cosh(f*x + e)^3 + 3*
a^2*cosh(f*x + e))*sinh(f*x + e)^3 + (4*a*b - b^2)*cosh(f*x + e)^2 + (15*a^2*cosh(f*x + e)^4 + 18*a^2*cosh(f*x
 + e)^2 + 4*a*b - b^2)*sinh(f*x + e)^2 + b^2 + 2*(3*a^2*cosh(f*x + e)^5 + 6*a^2*cosh(f*x + e)^3 + (4*a*b - b^2
)*cosh(f*x + e))*sinh(f*x + e))*sqrt(b)*sqrt((b*cosh(f*x + e)^2 + b*sinh(f*x + e)^2 + 2*a - b)/(cosh(f*x + e)^
2 - 2*cosh(f*x + e)*sinh(f*x + e) + sinh(f*x + e)^2)) + 4*(2*a^2*b*cosh(f*x + e)^7 + 3*(a^3 + a^2*b)*cosh(f*x
+ e)^5 + (9*a^2*b - 4*a*b^2 + b^3)*cosh(f*x + e)^3 + (3*a*b^2 - b^3)*cosh(f*x + e))*sinh(f*x + e))/(cosh(f*x +
 e)^6 + 6*cosh(f*x + e)^5*sinh(f*x + e) + 15*cosh(f*x + e)^4*sinh(f*x + e)^2 + 20*cosh(f*x + e)^3*sinh(f*x + e
)^3 + 15*cosh(f*x + e)^2*sinh(f*x + e)^4 + 6*co...

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {a + b \sinh ^{2}{\left (e + f x \right )}} \operatorname {csch}{\left (e + f x \right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csch(f*x+e)*(a+b*sinh(f*x+e)**2)**(1/2),x)

[Out]

Integral(sqrt(a + b*sinh(e + f*x)**2)*csch(e + f*x), x)

________________________________________________________________________________________

Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csch(f*x+e)*(a+b*sinh(f*x+e)^2)^(1/2),x, algorithm="giac")

[Out]

Exception raised: TypeError >> An error occurred running a Giac command:INPUT:sage2:=int(sage0,sageVARx):;OUTP
UT:Error: Bad Argument Type

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\sqrt {b\,{\mathrm {sinh}\left (e+f\,x\right )}^2+a}}{\mathrm {sinh}\left (e+f\,x\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*sinh(e + f*x)^2)^(1/2)/sinh(e + f*x),x)

[Out]

int((a + b*sinh(e + f*x)^2)^(1/2)/sinh(e + f*x), x)

________________________________________________________________________________________